package com.qzh.baseStruct;

import com.qzh.workInterface;

import java.util.List;

public class ClassExam extends ClassTest implements workInterface {
    private int num = 200;

    @Override
    public int getNum() {
        return num;
    }
    public int superNum(){
        return super.getNum();
    }
    @Override
    public void setNum(int num) {
        this.num = num;
    }
    public <T> void print(T info){
            if(info instanceof String){
                System.out.println("字符串");
            }
        if(info instanceof Integer){
            System.out.println("整形");}
        if(info instanceof Boolean){
            System.out.println("布尔");}
    }
    public <E> void print(List<E> list){


    }
}
